import {axiosA, axiosD, axiosG, axiosJ, axiosP} from "@/api";

/**
 * @description 网点
 * */
export const addUserApi = data => axiosA("admin/user/addUser", data); // 新增用户
export const delUserApi = data => axiosD("admin/user/delUser", data); // 删除用户
export const editUserApi = data => axiosP("admin/user/editUser", data); // 编辑用户
export const pageUserApi = data => axiosG("admin/user/pageUser", data); // 获得用户列表
export const getByNameApi = data => axiosG("admin/user/getByName", data); // 模糊搜索网点
export const getRoleTreeApi = () => axiosG("admin/role/treeRole"); // 获得权限树
export const editRolesMenusApi = data => axiosJ("admin/menu/editRolesMenus", data); // 编辑权限
export const resetPassWorldApi = data => axiosP("commentUser/resetPassWorld", data); // 重置密码

/**
 * @description 搜索网点
 * */
export const listAllUserApi = data => axiosG("admin/user/listAllUser", data); // 获得所有的网点
export const listSonUserApi = data => axiosG("admin/user/listSonUser", data); // 获得子网点
